<style>
	.relevli{height:35px;}
</style>
<div class="pageContent">
<div>
	
		<ul>
			<li class="relevli">
				<label>产品ID:{$relev['id']}</label>
			</li>	  
			<li class="relevli">
				<label>产品名称:{$relev['name']}</label>
			<li class="relevli">
				<label>产品状态:{if $relev['stauts'] == 1} 上架 {else} 下架 {/if}</label>
			</li>
			<li class="relevli">
			<form action="{:U('Product/relevance')}" method="post" onsubmit="return validateCallback(this,navTagAjaxDone);">
			<dl class="nowrap">
			<dd>
				关联产品ID：
				<input name="pid" value="{$relev['id']}" type="hidden" />
 				<input name="org3.id" value="" type="text" class="required" alt="">
				<a class="btnLook" href="{:U('Product/lookpro')}" lookupGroup="org3" style="float:right;">查找带回</a>
				<span class="info">请输入产品ID</span>
			</dd>
			<div class="buttonActive" style="float:right;">
                        <div class="buttonContent">
                            <button type="submit">
                                保存
                            </button>
                        </div>
                    </div>
				</form>
		</dl>
				
			</li>
			<li>已关联的产品：
				<table class="table" layoutH="118" targetType="dialog" width="100%">
					<thead>
						<tr>
							<th orderfield="orgName">产品ID</th>
							<th orderfield="orgNum">产品名称</th>
							<th orderfield="leader">产品分类</th>
							<th orderfield="creator">产品状态</th>
							<th orderfield="creator">操作</th>
						</tr>
					</thead>
					<tbody>
						<volist name="torelev" id="t">
						<tr>
							<td>{$t['id']}</td>
							<td>{$t['name']}</td>
							<td>{$t['mian_cat']}</td>
							<td>{if $t['stauts'] == 1} 上架 {else} 下架 {/if}</td>
							<td><a title="确实要删除这条记录吗?" href="{:U('Product/delrelev',array('id'=>$relev['id'],'pid'=>$t['id']))}" class="btnDel" target="ajaxTodo" title="确定要删除吗?">删除</a></td>
						</tr>
						</volist>
					</tbody>
				</table>
			</li>
		</ul>
	</div>

</div>